import md5 from 'js-md5'
export const signKey = 'bc37cc63-9d14-4013-8255-9168f24ceacd'

export function getSign(data, platform, version, os, timestamp) {
  const sysinfo = uni.getStorageSync('deviceId') || ''
  let signData = data + 'jljs' + platform + sysinfo + version + os + signKey + timestamp
  signData = signData.replace(/[\r\n]/g, '')
  return md5(signData)
}
